package com.sunlands.zlcx.usercenter.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author gaoyanfeng
 * @create 2019-04-17 20:00
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(value = "用户每天学习时长")
public class GroupUserStudyTime implements Serializable {

    private static final long serialVersionUID = -8349836690949739110L;
    private List<UserDayReqTime> userStudyTimeReqList;
    private List<UserDayRepTime> userStudyTimeRepList;

    @Data
    @ApiModel(value = "请求体")
    public static class UserDayReqTime {
        @ApiModelProperty(value = "用户id", required = true)
        private Integer userId;
        @ApiModelProperty(value = "时间，哪一天开始")
        private String startTime;
    }

    @Data
    @ApiModel(value = "返回体")
    public static class UserDayRepTime {
        @ApiModelProperty(value = "用户id")
        private Integer userId;
        @ApiModelProperty(value = "时间，哪一天")
        private String dayTime;
        @ApiModelProperty(value = "小时")
        private BigDecimal dayHour;

    }

}
